package com.crane.oss.enums;

/**
 * 跳绳子类型
 *
 * @author tyh
 *
 */
public enum TaskSubTypeEnum {

	sub_type_1(1, "1分钟倒计时"),
	sub_type_2(2, "200个倒计到"),
	sub_type_3(3, "自由跳"),
	sub_type_4(12, "2分钟倒计时"),
	sub_type_5(13, "3分钟倒计时"),
	;
	private Integer type;

	private String remark;

	private TaskSubTypeEnum(Integer type, String remark) {
		this.type = type;
		this.remark = remark;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static String getTaskSubTypeName(Integer type) {
		for (TaskSubTypeEnum taskSubTypeEnum : TaskSubTypeEnum.values()) {
			if (taskSubTypeEnum.getType().equals(type)) {
				return taskSubTypeEnum.getRemark();
			}
		}
		return "";
	}
}
